<?php

declare(strict_types=1);

namespace App\Robot\Process;

use Hyperf\AsyncQueue\Process\ConsumerProcess;
use Hyperf\Process\Annotation\Process;

#[Process(name: "low-priority-queue")]
class LpdQueueConsumer extends ConsumerProcess
{
    protected string $queue = 'low_priority';

    public function isEnable($server): bool
    {
        return \Hyperf\Support\env('REDIS_QUEUE_ENABLE', false);
    }
}